
import Pages from '@/components/sudoku/atom/pages'
import moment from 'moment';

export default {
  data () {
    return {
      carInfo: {
        isShow: false,
        list: [
          {
            name: '车牌号',
            value: '鄂A67510'
          },
          {
            name: '车辆类型',
            value: '鄂A67510'
          },
          {
            name: '所有人',
            value: '鄂A67510'
          },
          {
            name: '身份证号',
            value: '鄂A67510'
          },
          {
            name: '住址',
            value: '鄂A67510'
          },
          {
            name: '使用性质',
            value: '鄂A67510'
          },
          {
            name: '品牌型号',
            value: '鄂A67510'
          },
          {
            name: '车辆识别代码',
            value: '鄂A67510'
          },
          {
            name: '发动机号码',
            value: '鄂A67510'
          },
          {
            name: '注册日期',
            value: '鄂A67510'
          },
          {
            name: '注册单位',
            value: '鄂A67510'
          },
          {
            name: '违章记录简简述',
            value: '鄂A67510'
          },
          {
            name: '肇事事件简述',
            value: '鄂A67510'
          },
          {
            name: '重点人图像',
            value: '../../../assets/images/default.png'
          },
          {
            name: '重点人车辆',
            value: '../../../assets/images/imgs.png'
          },
        ]
      },
      car_num: '',
      date_demo: {
        name: '全部',
        id: 'all',
        icon_status: 'the-top',
        date_list_show: false,
        date_list: [
          {
            name: '今日',
            id: 'all'
          },
          {
            name: '本周',
            id: 'week'
          },
          {
            name: '本月',
            id: 'month'
          },
          {
            name: '全年',
            id: 'year'
          }
        ]
      },
      person_demo: {
        name: '全部',
        id: 'all',
        icon_status: 'the-top',
        person_list_show: false,
        person_list: [
          {
            name: '今日',
            id: 'all'
          },
          {
            name: '本周',
            id: 'week'
          },
          {
            name: '本月',
            id: 'month'
          },
          {
            name: '全年',
            id: 'year'
          }
        ]
      },
      address_demo: {
        name: '全部',
        id: 'all',
        icon_status: 'the-top',
        address_list_show: false,
        address_list: [
          {
            name: '今日',
            id: 'all'
          },
          {
            name: '本周',
            id: 'week'
          },
          {
            name: '本月',
            id: 'month'
          },
          {
            name: '全年',
            id: 'year'
          }
        ]
      },
      device_demo: {
        name: '全部',
        id: 'all',
        icon_status: 'the-top',
        device_list_show: false,
        device_list: [
          {
            name: '全部',
            id: 'all',
            check: false
          },
          {
            name: '人脸卡口',
            id: 'face',
            check: false
          },
        ]
      },
      select_date: '',
      table_title: [
        {
          text: '排名',
          width: '5%'
        },
        {
          text: '抓拍照片',
          width: '8%'
        },
        {
          text: '人员分类',
          width: '8%'
        },
        {
          text: '人脸抓拍次数',
          width: '8%'
        },
        {
          text: '车卡抓拍次数',
          width: '8%'
        },
        {
          text: 'Mac码识别次数',
          width: '8%'
        },
        {
          text: '抓拍时间',
          width: '10%'
        },
        {
          text: '抓拍地点',
          width: '10%'
        },
        {
          text: '人员姓名',
          width: '8%'
        },
        {
          text: '手机号码',
          width: '8%'
        },
        {
          text: '车牌号',
          width: '5%'
        },
        {
          text: 'Mac地址',
          width: '8%'
        },
        {
          text: '操作',
          width: '5%'
        }
      ],
      table_content: [
        {
          id: 1,
          pic: './images/default',
          peopleClassify: '涉案',
          face_camera_count: 45,
          car_camera_count: 10,
          mac_camera_count: 8,
          camera_time: '2018',
          camera_address: '楚河汉界',
          usernaem: '李三',
          p_number: 1351,
          carCard: '鄂234235',
          Mac_address: '5451ag',
          set: 'set'
        }
      ],
      table_info: {
        page: 1,
        all_totle: 50
      },
    }
  },
  components: {
    Pages
  },
  methods: {
    tablePageData (data) {
      //console.log(data)
    },
    choose_date (data) {
      this.date_demo.name = data.name
      this.date_demo.id = data.id
      this.date_demo.date_list_show = false
    },
    choose_person (data) {
      this.person_demo.name = data.name
      this.person_demo.id = data.id
      this.person_demo.person_show = false
    },
    choose_address (data) {
      this.address_demo.name = data.name
      this.address_demo.id = data.id
      this.address_demo.address_list_show = false
    },
    choose_device (data, _index) {
      data.check = !data.check
    },
    click_li () {
      this.carInfo.isShow = true
    }
  },
  mounted () {
  }
}
